#include<stdio.h>

#define Max 10

float average_heigh(float studentHeight[])
{
	int i;
	float sum=0;
	for(i=0;i<Max;i++)
	{
		sum+=studentHeight[i];
	}
	return sum/Max;
}

int main()
{
	float studentHeight[Max];
	printf("please input students'height:\n ");
	int i;
	for(i=0;i<Max;i++)
	{
		scanf("%f",&studentHeight[i]);
	}
	float ave=average_heigh(studentHeight);
	printf("ave = %.2f\n",ave);

	return 0;
}

